<?php 
$id= $_GET["id"];
$sql = "select * from nganh where ID=".$id;
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<form name="form1" method="post" action="?mod=qln&act=updateOk" enctype="multipart/form-data">
<input name="id" type="hidden" value="<?php echo $row["ID"] ?>">

  <p>M&atilde; Ng&agrave;nh:
    <input type="text" name="maNganh" value="<?php echo $row["maNganh"]?>">
  </p>
  <p>T&ecirc;n Ng&agrave;nh: 
    <input type="text" name="tenNganh" value="<?php echo $row["tenNganh"]?>">
  </p>
  <p>T&ecirc;n Khoa: 
    <input type="text" name="tenKhoa" value="<?php echo $row["tenKhoa"]?>">
  </p>
  <p>H&#7879; &#272;&agrave;o T&#7841;o: 
    <input type="text" name="heDaoTao" value="<?php echo $row["heDaoTao"]?>">
  </p>
  <p>Ch&#7913;c Danh: 
    <input type="text" name="chucDanh" value="<?php echo $row["chucDanh"]?>">
  </p>
  <p>
    <input type="submit" name="Submit" value="L&#432;u">
  </p>
</form>
